
<link href="<?php echo $url_template?>/css/bootstrap-wysiwyg.css" rel="stylesheet">

<h2>Ajouter un nouveau annonce</h2>
<form name="post" class="form-horizontal" action="<?php echo $CFG->config['base_url']?>product/admin/create" method="post" id="post">
<div class="span8">
 <div class="control-group">
	<label class="control-label" for="title">titre</label>
	<div class="controls">
		<input type="text" name="prd_name" size="30" value="" id="title" autocomplete="on" />
		<input type="hidden" name="prd_link" size="30" value="" id="prd_link" />
	</div>
</div>


	<div class="control-group">
	<label class="control-label" for="category">Categories</label>
	<div class="controls">
		<select id='category' name="category" onchange="if(this.value=!'')showOption(this.value)">
			<?php echo $CategoryList?>
		</select>
	</div>
	</div>
	<script type="text/javascript">
		function showOption($value){
			$.post("<?php echo $CFG->config['base_url']?>setting/option/getOptions", {idOption:$value } ).
				done(function($data) {
					$('#pagePostOption').show('slow');
					$('#showOption').html($data);
				});
		}
	</script>
	
	<div class="control-group">
	<label class="control-label">Options</label>
		<div id="showOption" class="controls">
		</div>
	</div>

<div class="control-group">
	<label class="control-label" for="content">Description</label>
	<div class="controls">
		<textarea class="textarea row-fluid"  rows="10" name="prd_description" id="content"></textarea>
	</div>
</div>

<div class="control-group">
	<label class="control-label" for="content">Prix</label>
	<div class="controls">
		<input id="price" name="price" value="" type="text" size="6" /> €
	</div>
</div>



<div id="ensemble" class="hide"> 


<div id="carte" class="carte">

<div class="map" style="position:relative;" >

      <p><img src="<?php echo $CFG->config['base_url']?>template/admin/images/carte.png" width="479"  usemap="#Image1Map2"  border="0"  />
        <map name="Image1Map2" id="Image1Map2"  >
          <area shape="poly" coords="15,138,41,137,44,158,35,163,43,175,42,181,11,177" onmouseover="showImg(134,9,-672,48,29)" />
          <area shape="poly" coords="270,147,268,157,286,177,307,174,312,164,304,152,291,150" onmouseover="showImg(143,268,-1240,39,10)" />
          <area shape="poly" coords="137,141,138,149,154,147,161,153,169,151,180,160,182,152,177,137,167,134" onmouseover="showImg(131,135,-893,37,61)" />
          <area shape="poly" coords="262,82,259,118,269,133,272,108,284,106,290,85" onmouseover="showImg(80,253,-181,58,02)" />
          <area shape="poly" coords="154,158,148,186,162,195,172,194,183,181,184,171,172,162,168,155,161,161" onmouseover="showImg(154,147,-1146,46,72)" />
          <area shape="poly" coords="44,166,49,175,46,182,75,198,86,194,87,177,82,167" onmouseover="showImg(160,42,-1017,39,56)" />
          <area shape="poly" coords="131,112,136,123,130,131,136,137,169,130,165,108,152,117" onmouseover="showImg(110,126,-721,32,14)" />
          <area shape="poly" coords="185,144,190,153,183,166,199,177,214,172,216,161,206,146,203,143,201,141" onmouseover="showImg(133,185,-1097,49,28)" />
          <area shape="poly" coords="295,83,310,72,310,90,320,97,313,113,289,106" onmouseover="showImg(75,286,-273,46,08)" />
          <area shape="poly" coords="335,155,347,173,367,173,378,178,385,158,378,153" onmouseover="showImg(149,332,-932,33,88)" />
          <area shape="poly" coords="210,127,226,131,226,140,219,152,212,143" onmouseover="showImg(126,206,-860,33,78)" />
          <area shape="poly" coords="256,165,261,177,254,191,267,199,288,204,295,188,295,181,284,181,268,161,256,164" onmouseover="showImg(159,251,-1363,50,89)" />
          <area shape="poly" coords="246,129,256,126,265,137,267,147,264,156,253,157,250,167,243,162" onmouseover="showImg(125,238,-811,49,77)" />
          <area shape="poly" coords="225,166,222,174,211,177,212,186,219,191,231,191,246,198,257,175,255,171,239,173,235,166" onmouseover="showImg(160,208,-1321,42,45)" />
          <area shape="poly" coords="402,119,415,124,400,164,386,153,393,134,388,130,391,126,394,128" onmouseover="showImg(121,379,-524,46,67)" />
          <area shape="poly" coords="208,65,203,76,218,90,239,92,252,93,252,81" onmouseover="showImg(64,205,-142,38,80)" />
          <area shape="poly" coords="345,102,351,121,384,144,389,135,376,126,381,120,390,123,391,118,393,116,378,115,358,103" onmouseover="showImg(103,345,-477,46,65)" />
          <area shape="poly" coords="201,83,193,87,167,95,165,104,186,108,191,109,200,105,211,106,210,91" onmouseover="showImg(79,164,-102,39,76)" />
          <area shape="poly" coords="332,101,341,116,341,148,352,149,381,147,352,129,346,121,342,112,342,105,337,100" onmouseover="showImg(101,332,-419,58,64)" />
          <area shape="poly" coords="301,179,302,191,294,202,300,215,314,224,330,222,338,209,334,195,320,189,318,180,314,175" onmouseover="showImg(175,290,-1552,55,21)" />
          <area shape="poly" coords="317,146,329,155,342,178,338,188,328,187,322,181,317,172,317,161,311,153" onmouseover="showImg(143,309,-1415,52,52)" />
          <area shape="poly" coords="321,106,317,137,331,150,336,147,335,124,332,113,326,101" onmouseover="showImg(100,315,-361,58,55)" />
          <area shape="poly" coords="377,197,387,203,371,221,370,231,363,234,363,229,359,224,348,210" onmouseover="showImg(193,345,-1611,48,25)" />
          <area shape="poly" coords="228,31,238,28,289,66,288,79,257,78,245,49,232,42,228,31" onmouseover="showImg(31,228,-48,54,59)" />
          <area shape="poly" coords="99,91,117,97,129,121,122,134,132,142,132,149,113,149,112,131" onmouseover="showImg(92,102,-571,60,50)" />
          <area shape="poly" coords="99,149,107,148,115,156,121,152,117,171,113,183,93,187,90,171" onmouseover="showImg(141,87,-966,50,35)" />
          <area shape="poly" coords="283,112,313,118,310,147,299,146,294,138,278,143,271,139,277,115" onmouseover="showImg(111,269,-319,42,51)" />
          <area shape="poly" coords="352,176,367,178,375,183,375,190,372,194,343,207,339,197"onmouseover="showImg(174,333,-1513,39,70)" />
          <area shape="poly" coords="128,153,152,154,144,185,121,184" onmouseover="showImg(150,120,-1057,39,53)" />
          <area shape="poly" coords="46,134,49,161,84,162,93,148,64,141,61,133" onmouseover="showImg(131,47,-633,39)"/>
          <area shape="poly" coords="190,178,200,182,207,181,208,191,218,199,217,200,221,206,216,208,205,206,197,209,197,197,183,191" onmouseover="showImg(171,179,-1193,46,41)" />
          <area shape="poly" coords="216,95,217,117,251,121,255,98" onmouseover="showImg(95,215,-239,34,60)" />
          <area shape="poly" coords="389,162,380,182,388,186,389,193,393,197,397,193,399,172" onmouseover="showImg(157,378,-1468,44,68)" />
          <area shape="poly" coords="207,39,223,32,226,43,241,54,251,75,207,60,207,39" onmouseover="showImg(34,210,0,48,62)" />
          <area shape="poly" coords="174,113,178,130,188,138,201,136,214,112,207,109,193,115" onmouseover="showImg(106,172,-753,41,27)" />
          <area shape="poly" coords="83,200" href="#)" />
          <area shape="poly" coords="79,203,94,194,117,192,126,202,116,205,120,214,106,223" onmouseover="showImg(182,77,-1660,50,44)" />
          <area shape="poly" coords="125,191,145,193,159,201,154,215,133,221,125,215,124,209,131,205" onmouseover="showImg(184,117,-1716,41,49)" />
          <area shape="poly" coords="161,214,168,199,181,197,189,201,193,210,196,214,187,228,178,223,169,226" onmouseover="showImg(191,161,-1763,47,37)" />
          <area shape="poly" coords="235,201,231,210,226,215,230,220,235,240,252,232,252,209" onmouseover="showImg(193,216,-1810,59,18)" />
          <area shape="poly" coords="257,201,292,214,284,231,262,236" onmouseover="showImg(197,252,-1870,44,58)" />
          <area shape="poly" coords="296,219,310,229,329,227,333,247,317,245,316,259,290,259,285,239" onmouseover="showImg(217,279,-2181,48,71)" />
          <area shape="poly" coords="342,212,358,234,357,249,349,252,340,250,334,233,334,223" onmouseover="showImg(209,330,-1915,49,39)" />
          <area shape="poly" coords="90,219,103,247,119,253,127,248,135,253,138,248,128,224,109,232" onmouseover="showImg(219,89,-2010,41,85)" />
          <area shape="poly" coords="135,225,154,222,164,263,155,267,138,259,143,247" onmouseover="showImg(217,130,-2070,54,79)" />
          <area shape="poly" coords="160,221,169,263,180,262,192,249,179,234,169,231" onmouseover="showImg(216,155,-2126,54,86)" />
          <area shape="poly" coords="206,218,194,236,196,243,205,250,229,249,226,222,218,217,216,213" onmouseover="showImg(211,189,-1964,43,36)" />
          <area shape="poly" coords="257,238,236,254,244,265,256,259,280,274,284,256,277,243" onmouseover="showImg(234,233,-2229,40,03)" />
          <area shape="poly" coords="286,264,297,266,301,287,314,295,310,304,300,297,291,297,284,280"onmouseover="showImg(259,280,-2614,49,42)" />
          <area shape="poly" coords="302,263,314,262,313,273,326,282,317,288,316,293,305,282" onmouseover="showImg(255,298,-2663,42,69)" />
          <area shape="poly" coords="323,250,319,270,328,280,337,274,345,285,352,266,355,258,341,259,331,252"onmouseover="showImg(246,313,-2271,42,01)" />
          <area shape="poly" coords="357,266,368,248,384,252,388,270,382,276,375,271,368,278,354,274" onmouseover="showImg(249,350,-2314,45,74)" />
          <area shape="poly" coords="109,256,119,284,132,298,152,310,154,307,145,291,141,278,154,272,131,259"onmouseover="showImg(253,106,-2367,62,17)" />
          <area shape="poly" coords="161,272,180,266,184,275,159,310,148,282" onmouseover="showImg(262,142,-2567,46,16)" />
          <area shape="poly" coords="186,264,199,254,204,259,218,283,198,295,189,285" onmouseover="showImg(252,178,-2518,49,87)" />
          <area shape="poly" coords="206,254,222,279,236,281,237,266,230,254" onmouseover="showImg(250,204,-2429,40,23)" />
          <area shape="poly" coords="242,269,244,290,259,298,286,296,275,278,259,268" onmouseover="showImg(259,237,-2469,46,63)" />
          <area shape="poly" coords="267,303,275,322,287,323,300,310,294,300" onmouseover="showImg(298,261,-3016,34,43)" />
          <area shape="poly" coords="286,329,309,309,317,309,318,324,313,346,296,347" onmouseover="showImg(299,286,-3109,55,07)" />
          <area shape="poly" coords="318,304,325,323,317,343,337,345,338,346,344,330,339,318,328,305" onmouseover="showImg(300,315,-3050,57,26)" />
          <area shape="poly" coords="319,293,336,282,345,295,359,297,364,315,350,321,349,310,338,305" onmouseover="showImg(276,316,-2750,55,38)" />
          <area shape="poly" coords="352,278,366,284,376,278,389,288,392,299,375,308,366,303,364,293,353,292" onmouseover="showImg(271,345,-2705,44,73)" />
          <area shape="poly" coords="118,294,116,337,127,340,142,350,154,337,154,317" onmouseover="showImg(290,113,-2904,65,33)" />
          <area shape="poly" coords="183,295,196,301,200,323,192,333,187,333,170,330,160,325,166,315"onmouseover="showImg(285,155,-2848,55,24)" />
          <area shape="poly" coords="204,301,207,314,223,318,230,302,236,297,236,288,224,287" onmouseover="showImg(283,199,-2807,41,19)" />
          <area shape="poly" coords="241,296,261,305,268,316,257,328,250,315,242,325,237,329,232,329,230,315"onmouseover="showImg(297,226,-2973,42,15)" />
          <area shape="poly" coords="262,333,268,323,275,330,281,330,286,340,284,349,279,355,266,352" onmouseover="showImg(320,256,-3214,43,48)" />
          <area shape="poly" coords="290,347,312,355,318,366,303,388,298,386,302,376,292,369,284,363,274,367,274,360,287,359" onmouseover="showImg(344,268,-3602,46,30)" />
          <area shape="poly" coords="314,351,329,355,340,356,348,371,349,376,332,374,325,368" onmouseover="showImg(344,313,-3561,40,84)" />
          <area shape="poly" coords="370,316,380,314,391,326,380,338,370,338,361,339,353,350,344,343" onmouseover="showImg(310,340,-3164,44,05)" />
          <area shape="poly" coords="114,343,104,379,140,378,141,369,152,362,152,359" onmouseover="showImg(338,101,-3449,50,40)" />
          <area shape="poly" coords="165,334,158,352,165,360,181,357,184,350,190,346,188,338" onmouseover="showImg(329,151,-3409,40,47)" />
          <area shape="poly" coords="210,319,226,324,230,336,219,347,209,350,199,346,196,338" onmouseover="showImg(316,189,-3257,42,46)" />
          <area shape="poly" coords="248,329,224,348,248,376,260,372,268,362" onmouseover="showImg(321,218,-3299,60,12)" />
          <area shape="poly" coords="268,372,249,383,252,395,262,400,276,395,292,382,284,370" onmouseover="showImg(366,242,-3857,40,34)" />
          <area shape="poly" coords="320,371,307,390,347,401,352,395,353,381,332,380" onmouseover="showImg(367,302,-3817,40,13)" />
          <area shape="poly" coords="357,376,380,373,388,386,383,398,368,402,356,404" onmouseover="showImg(371,350,-3776,40,83)" />
          <area shape="poly" coords="386,338,376,344,364,345,354,354,347,360,355,372,373,370,384,362" onmouseover="showImg(330,345,-3360,49,04)" />
          <area shape="poly" coords="392,350,385,370,394,383,418,354" onmouseover="showImg(345,383,-3516,44,06)" />
          <area shape="poly" coords="102,383,93,404,134,418,150,394,146,388" onmouseover="showImg(384,92,-3959,42,64)" />
          <area shape="poly" coords="180,364,158,366,144,375,148,383,174,396,188,388" onmouseover="showImg(360,145,-3691,40,32)" />
          <area shape="poly" coords="187,351,194,357,215,354,217,359,207,367,195,372,185,366" onmouseover="showImg(346,180,-3655,35,82)" />
          <area shape="poly" coords="155,393,171,401,165,424,142,420" onmouseover="showImg(382,142,-4001,44,65)" />
          <area shape="poly" coords="190,376,195,393,177,403,170,425,177,428,186,407,218,392,207,376" onmouseover="showImg(370,170,-3898,57,31)" />
          <area shape="poly" coords="210,400,191,409,186,420,212,431,222,427,217,420,222,416,220,406" onmouseover="showImg(396,183,-4052,44,39)" />
          <area shape="poly" coords="225,355,242,375,245,389,222,389,211,373" onmouseover="showImg(355,206,-3732,42,81)" />
          <area shape="poly" coords="220,396,232,408,225,424,241,423,258,418,255,406,238,394" onmouseover="showImg(390,212,-4098,42,11)" />
          <area shape="poly" coords="217,434,225,443,262,440,258,422" onmouseover="showImg(415,214,-4140,39,66)" />
          <area shape="poly" coords="405,403,404,419,389,431,410,454,413,455,413,428,407,403" onmouseover="showImg(414,373,-4179,57,'2b')" />
          <area shape="poly" coords="382,441,391,475,406,481,411,463,385,435" onmouseover="showImg(446,373,-4239,46,'2a')" />
          <area shape="rect" coords="249,453,294,498" onmouseover="showImg(447,251,-4430,41,969)" />
          <area shape="rect" coords="188,450,225,496" onmouseover="showImg(449,186,-4386,44,972)" />
          <area shape="rect" coords="115,448,153,495" onmouseover="showImg(442,114,-4331,55,973)" />
          <area shape="rect" coords="46,456,82,490" onmouseover="showImg(450,42,-4292,39,976)" />
          <area shape="poly" coords="366,52,374,52,379,57,380,63,373,67,367,66,360,70,359,59" onmouseover="showImg(50,345,-4584,27,75)" />
          <area shape="poly" coords="391,64,400,72,405,74,408,81,404,97,395,94,377,93,369,89,366,89,365,78,380,79,392,75" onmouseover="showImg(59,360,-4610,42,94)" />
          <area shape="poly" coords="357,39,359,48,347,52,348,65,356,77,356,89,340,78,335,60,341,43" onmouseover="showImg(36,333,-4472,57,92)" />
          <area shape="poly" coords="406,22,410,69,395,55,388,53,384,51,381,50,379,47,373,43,369,42,368,35" onmouseover="showImg(20,360,-4530,52,93)" />
          <area shape="rect" coords="130,46,178,75" onmouseover="showImg(38,130,-4653,30,95)"  />
          <area shape="rect" href="" coords="402,206,435,246" onmouseover="showImg(205,402,-4683,35,90)"  />
          <area shape="poly" coords="229,144,224,153,224,161,238,161,237,144,230,143" onmouseover="showImg(140,221,-4719,25)" href="#" />
        </map>
      </p>
      <div id="carteVol" onmouseout="$(this).hide()" onclick="getCodeDept()" ></div>
      <div class="close" > <input type="button" value="X"  onclick="$('#ensemble').hide()"/></div>
  </div>
</div>
</div>



<legend>Localisation</legend>
<div class="control-group">
	<label class="control-label" for="region">Région</label>
	<div class="controls">
		<select onchange="showLocalisation('departement',this.value);" id="region">
			<option>«Choisissez la région»</option>
			<?php echo $regionList?>
		</select>
	</div>
	
	<label  class="control-label" for="departement">Département</label>
	<div class="controls">
		<select onchange="showLocalisation('ville',this.value);" id="departement">
			<option value="0">«Choisissez le département»</option>
			<?php echo $departementList?>
		</select>
	</div>
	<label  class="control-label" for="ville">Ville</label>
	<div class="controls">
		<select onchange="$('#cp').val(this.value)" id="ville">
			<option value="0">«Choisissez la ville»</option>
				<?php echo $villeList?>
		</select>
	</div>
	<label  class="control-label" for="cp">Code Postal</label>
	<div class="controls">
		<input id='cp' value='<?php echo $codePostal?>' name='cp'/> 
		<span onclick="$('#ensemble').show()" class="help-inline">Ouvir la carte</span>
		<script type="text/javascript">
		function showLocalisation($id,$value){
			$.post("<?php echo $CFG->config['base_url']?>localisation/index", {name:$id, id:$value } ).
				done(function($data) {
					$('#'+$id).html($data);
				});
		}
		</script>
	</div>
</div>



<legend>Service Payant</legend>
<div class="control-group">
	<div class="controls">
		<label class="checkbox">
			<input id="top_list" type="checkbox"  value="1" name="top"/> <strong>Immédiatement en tête de liste</strong> 
		</label>
		
		<label class="checkbox">
			<input id="priority" type="checkbox"  value="1" name="priority" onclick="if($(this).is(':checked'))this.value=1; else this.value=''"/>Mettre mon annonce A la Une
		</label>
		
		
		<label class="radio">
			<input id="priorityWeek" type="radio"  value="<?php echo strtotime('+1 week')?>" name="priority_date" onclick="$('#priority').val(1)"/>
			<strong>Pendant 1 semaine (<?php echo date('d/m/Y',strtotime('+1 week'))?>)</strong>
		</label>
		
		<label class="radio">
			<input id="priorityMonth" type="radio"  value="<?php echo strtotime('+1 month')?>" name="priority_date" onclick="$('#priority').val(0)"/>
			<strong>Pendant 1 mois(<?php echo date('d/m/Y',strtotime('+1 month'))?>)</strong>
		</label>
		<label class="checkbox" for="urgent">
			<input id="urgent" type="checkbox"  value="1" name="urgent"/>
			<strong>Rajouter un Logo Urgent et vendre plus vite</strong>
		</label>
	</div>
		
</div>



<legend>Information</legend>
	<div class="control-group">
	
		<label class="control-label" for="content">Votre Email</label>
		<div class="controls">
			<input id="user_email" type="email"  value="" name="user_email" placeholder="Entrez votre email" required/>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label" for="content">Vous êtes un :</label>
		<div class="controls">
		
				<input id="companyPro" type="radio"  value="0" name="company" onclick="$('#nom_prenom').text('Nom et prénom')" checked="checked" />
				<strong>Particulère</strong>
				
			ou 
			
		   		<input id="company" type="radio"  value="1" name="company" onclick="$('#nom_prenom').text('Nom de l\'entreprise')"/>
				<strong> Professionnel </strong>
				
		</div>
	</div>
	<div class="control-group">
   	<label class="control-label" for="user_name">Nom et prénom</label>
	<div class="controls">
	   		 <input id="user_name" type="text"  value="" name="user_name" placeholder="Entrez Nom et prénom" required />
	</div>
	</div>
	
	<div class="control-group">
	<label class="control-label" for="user_tel">Telephone</label>
	<div class="controls">
		<input id="user_tel" type="text" name="user_tel" title="N° à 10 chiffres sans espace" pattern="^0[1-9][0-9]{8}$"  placeholder="0612345678"	required />
	</div>
	</div>
	<div class="control-group">
		<div class="controls">
		<label class="checkbox" for="user_tel_show"><input id="user_tel_show" type="checkbox" value="1" name="user_tel_show"  /> Masquer le numéro de téléphone dans l'annonce</label>
		</div>
	</div>
	
	<div class="control-group">
		<label class="control-label" for="user_password">Mots de passe d'annonce</label>
		<div class="controls">
				 <input id="user_password" type="password" value="" name="user_password" required />
		</div>
	</div>
	
	
	
	<div class="control-group">
	<label class="control-label">Link Youtube</label>
		<div class="controls">
		<input id="prd_youtube" type="text" value="" name="prd_youtube" placeholder="http://youtu.be/9bZkp7q19f0" />
		</div>
	</div>
	
	<div class="control-group">
	<label class="control-label">Photo</label>
		<div class="controls">
		<input id="fileToUpload" type="file" onclick="if($('#category').val()=='') {alert('Il faut selectionner un categorie');return false;}" multiple />
		<div id="zonephoto">
		  <div class="uploader-inline-content no-upload-message">Déposez vos photos ici pour les mettre en ligne</div>
		</div>
		</div>
	</div>
	
	<div class="control-group">
	<div class="controls">
		<label class="checkbox" for="more_photo"><input id="more_photo" type="checkbox" name="more_photo" value="1" />(Payant) voir plus de 3 photos</label>
		
		</div>
	</div>
	
	
<script type="text/javascript" src="<?php echo $url_template?>/js/bootstrap-wysiwyg.js"></script>
<script type="text/javascript">

$('.textarea').wysihtml5();
	jQuery(function() {
		$("#title").change(function() {
			$("#prd_link").val(slugify($("#title").val()));
		});

		$html5Uploader.name=$("#title").val();
		$html5Uploader.postUrl="<?php echo $CFG->config['base_url']?>upload/admin";
		jQuery("#zonephoto, #fileToUpload").html5Uploader($html5Uploader);
	});
</script>
	
	
	
</div>







<div class="span4">

    <ul class="nav nav-list">
	    <li class="nav-header">Visibility</li>
	    <li>
		    <label class="radio">
	    
			<input type="radio" name="prd_active" id="visibility-radio-private" value="0"  /> Brouillons
	    	</label>
	    </li>
	    <li>
		    <label class="radio">	    
				<input type="radio" name="prd_active" id="visibility-radio-public" value="1"  checked='checked' /> Public
		    </label>
	    </li>
	     <li class="divider"></li>
	     <li>
	     <input class="span1" type="text" id="jj" name="jj" value="<?php echo date('d')?>" size="2" maxlength="2" autocomplete="off" />,
		<select class="span2" id="mm" name="mm">
		<?php 
		$months=array(
				1=>'01-Jan',
				2=>'02-Feb',
				3=>'03-Mar',
				4=>'04-Apr',
				5=>'05-May',
				6=>'06-Jun',
				7=>'07-Jul',
				8=>'08-Aug',
				9=>'09-Sep',
				10=>'10-Oct',
				11=>'11-Nov',
				12=>'12-Dec');
		foreach ($months as $m=>$month){
			$s=($m==date('m'))?'selected="selected"':'';
			echo "<option value='$m' $s>$month</option>";
		}
		?>
		</select>
		 <input class="span1" type="text" id="aa" name="aa" value="<?php echo date('Y')?>" size="4" maxlength="4" autocomplete="off" /> @ 
		 <input class="span1" type="text" id="hh" name="hh" value="<?php echo date('H')?>" size="2" maxlength="2" autocomplete="off" /> : 
		 <input class="span1" type="text" id="mn" name="mn" value="<?php echo date('i')?>" size="2" maxlength="2" autocomplete="off" />
	     </li>
	     <li>
	     	<input type="submit" name="publish" id="publish" class="btn" value="Publier" accesskey="p"  />
	     </li>
    </ul>
    
	<hr/>
    <textarea id="new-tag-post_tag" name="tag" class="row-fluid" placeholder="Tags"></textarea>    
    <input type="button" class="btn" value="Auto" onclick="autoTag('new-tag-post_tag')"/>    
	<p class="howto">Séparer les tags par une virgule.</p>
	
	<hr/>
	<textarea id="new-tag-keywords" name="keywords"  class="row-fluid"></textarea>
	<input type="button" class="btn" value="Auto" onclick="autoTag('new-tag-keywords')" placeholder="Mots-clés"/>
	
	<p class="howto">Séparer les tags par une virgule.</p>

</div>





</form><!-- /End Form -->
